Smush\Core\Stats\Global_Stats B

Total Complexity 86
Dependencies 9
Dependents 17
Total lines 535
Lines of code 329
Logical lines of code 173
Comment lines 104
Methods 51
Properties 10

Methods 51

Method Rating Maintainability Complexity Lines of code
adjust_lists_for_media_item()
S
54 7 22
get_percent_optimized()
S
58 5 17
get_grade_class()
S
59 5 15
to_array()
S
48 2 32
subtract_item_stats()
S
64 4 9
add_item_stats()
S
64 4 9
is_outdated()
S
64 3 11
adjust_for_media_item()
S
66 3 9
get_array_value()
S
73 3 5
get_global_stats_option()
S
68 3 7
reset()
S
64 2 11
get()
S
71 2 6
get_percent_metric()
S
75 2 4
get_sum_of_optimization_global_stats()
S
69 2 7
get_persistable_stats_for_optimizations()
S
72 2 6
is_media_library_empty()
S
71 2 6
update_stats_update_started_timestamp()
S
80 1 3
get_global_stats_option_value()
S
75 1 4
get_remaining_count()
S
74 1 5
update_global_stats_option_value()
S
70 1 6
get_total_optimizable_items_count()
S
80 1 3
get_skipped_count()
S
80 1 3
get_skipped_ids()
S
69 1 7
delete_global_stats_option()
S
81 1 3
get_animated_list()
S
82 1 3
get_persistable_stats_for_optimization()
S
73 1 6
remove_media_item()
S
73 1 5
adjust_for_attachment()
S
76 1 4
create_global_stats_object()
S
71 1 7
initialize_stats_for_optimizations()
S
80 1 3
remove_from_all_lists()
S
70 1 7
mark_as_outdated()
S
81 1 3
get_ignore_list()
S
82 1 3
get_stats_updated_timestamp()
S
80 1 3
get_optimized_images_count()
S
80 1 3
update_stats_updated_timestamp()
S
80 1 3
get_rescan_required_timestamp()
S
80 1 3
update_rescan_required_timestamp()
S
80 1 3
get_image_attachment_count()
S
80 1 3
add_image_attachment_count()
S
71 1 6
subtract_image_attachment_count()
S
70 1 6
add_optimized_images_count()
S
71 1 6
get_error_list()
S
82 1 3
subtract_optimized_images_count()
S
70 1 6
get_stats_update_started_timestamp()
S
80 1 3
mutex()
S
75 1 4
get_optimize_list()
S
82 1 3
get_redo_ids()
S
72 1 6
get_redo_count()
S
77 1 4
get_reoptimize_list()
S
82 1 3
__construct()
S
63 1 10